package com.hyq.market.ui.home.model;

import com.hyq.market.api.AbsServiceUtils;
import com.hyq.market.api.BaseRequest;
import com.hyq.market.api.Constant;

import org.xutils.http.RequestParams;

/**
 * Created by Administrator on 2017/7/31 0031.
 */

public class ModelLike extends AbsServiceUtils {
    @Override
    public <T> T fromJson(String json) {
        return null;
    }

    @Override
    public <T> void getData(T t) {
        super.getData(t);
        BaseRequest request= (BaseRequest) t;
        RequestParams params=new RequestParams(Constant.API_collection);
        params.addBodyParameter("id",request.getId());
        sendToServer(params,1);
    }
}
